@extends('layout.admin.master')
@section('content')
    <div class="card">
        <div class="card-body">
            <ul class="nav nav-tabs nav-tabs-sm">
                <li class="nav-item">
                    <a href="{{route('permission.module.index')}}" class="nav-link ">
                        模块列表
                    </a>
                </li>
                <li class="nav-item">
                    <a href="javascript:;" class="nav-link  active">
                        模块权限
                    </a>
                </li>

            </ul>
        </div>
    </div>
    <div class="card">
        <div class="card-header">
            <strong>{{$module->cname}} | <span class="info">{{$module->name}}</span></strong>
        </div>
        <div class="card-body">
            <div class="row">
                @foreach($module->permissions as $permission)
                    <div class="col-3">
                        <strong>{{$permission['cname']}}</strong>  | <span class="info">{{$permission['name']}}</span>
                    </div>
                @endforeach
            </div>
        </div>
    </div>
@endsection
